NXT_StartProgram
Starts the given program on the NXT Brick
Contents
Syntax
NXT_StartProgram(filename)
NXT_StartProgram(filename, handle)
Description
NXT_StartProgram(filename) starts the embedded NXT Brick program determined by the string filename. The maximum length is limited to 15 characters. The file extension '.rxe' is added automatically if it was omitted.
NXT_SetBrickName(name, handle) uses the given NXT connection handle. This should be a struct containing a serial handle on a PC system and a file handle on a Linux system.
If no NXT handle is specified the default one (COM_GetDefaultNXT) is used.
For more details see the official LEGO Mindstorms communication protocol.
Examples
NXT_StartProgram('ResetCounter');
handle = COM_OpenNXT('bluetooth.ini','check'); NXT_StartProgram('Demo.rxe', handle);
See also
Signature
- Author: Alexander Behrens, Linus Atorf (see AUTHORS)
- Date: 2007/10/15
- Copyright: 2007-2008, RWTH Aachen University